From: Owen W. Taylor Date: Sat, 19 Mar 2011 17:51:34 +0000 (-0400) Subject: message-tray: allocate the entire size to the icon X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~8575 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=96f89ce4ae0cfbdeb2f4d1e6b2c3de700aeae6db;p=gnome-shell.git message-tray: allocate the entire size to the icon Specify x-fill and y-fill true for the bin that contains the status icon so the status icon will always be sized to our specified icon size (24x24). This prevents pathological behavior for legacy status icons embedded in the tray where an initial allocation at 1x1 before they had content would "stick", and the icon would permanently end up 1x1. https://bugzilla.gnome.org/show_bug.cgi?id=634820 --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index d2c09f499..ae1060aa6 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -820,7 +820,9 @@ Source.prototype = { _init: function(title) { this.title = title; this._iconBin = new St.Bin({ width: this.ICON_SIZE, - height: this.ICON_SIZE }); + height: this.ICON_SIZE, + x_fill: true, + y_fill: true }); this.isTransient = false; this.isChat = false; },